//dev test prod
export const env = 'prod';

const dev = 'http://localhost:8083/qw/';
//const test = 'https://dev.quqdan.com/qw/';
const test = 'http://114.132.44.108:8083/qw/';
const prod = 'https://quqdan.com/qw/';
//const prod = 'https://prod.whaala.com/qw/';
const urlApi = env === 'dev' ? dev : env === 'test' ? test : env === 'prod' ? prod : dev;

export default {
    urlApi: urlApi,

    // =================================================
    login: urlApi + "auth/mgr/login", //用户登录
    resetPassword: urlApi + "mgr/user/resetPassword", //用户登录
    updatePassword: urlApi + "mgr/admin/updatePassword", //修改密码
    homeData: urlApi + 'mgr/data/index',//首页数据汇总
    userList: urlApi + 'mgr/users',//会员列表
    details: urlApi + 'mgr/user/details',//会员详细信息
    accBalanceLog: urlApi + 'mgr/user/balanceLog',//会员账变
    changeStatus: urlApi + 'mgr/user/changeStatus',//会员开启/禁用
    balanceLog: urlApi + 'mgr/data/balanceLog',//充值-提现记录
    vipLog:urlApi+'mgr/rechargeVip/users', //会员充值记录
    indexDashboard: urlApi + 'mgr/data/indexDashboard',//home折线图
    imgs: urlApi + 'common/upload/imgs',//图片上传
    img: urlApi + 'common/upload/img',//图片上传

    //报表
    finance: urlApi + 'mgr/data/finance',//财务报表这
    spread: urlApi + 'mgr/data/spread',//推广报表
    preserve: urlApi + 'mgr/data/preserve',//推广报表
    exportSpread: urlApi + 'mgr/data/export/spread',//导出推广报表
    exportFinance: urlApi + 'mgr/data/export/finance',//导出财务报表
    exportPreserve: urlApi + 'mgr/data/export/preserve',//留存报表导出
    delCateTag: urlApi + 'mgr/cate/delCateTag',//标签删除
    add: urlApi + 'mgr/user/add',//添加管理员
    //动态管理
    // delDynamic: urlApi + 'mgr/dynamic/delDynamic',//删除动态管理
    // managerDynamicListPage: urlApi + 'mgr/dynamic/managerDynamicListPage',//动态管理列表分页
    //后台管理员
    addAdmin: urlApi + 'mgr/admin/addAdmin',//添加管理员
    // adminList: urlApi + '/mgr/admin/adminList',//管理员列表
    adminListPage: urlApi + 'mgr/admin/adminListPage',//管理员列表分页
    delAdmin: urlApi + 'mgr/admin/delAdmin',//删除管理员
    detailAdmin: urlApi + 'mgr/admin/detailAdmin',//管理员详情
    getAdminMenuList: urlApi + 'mgr/admin/getAdminMenuList',//获取管理员菜单列表（登录成功
    updateAdmin: urlApi + 'mgr/admin/updateAdmin',//管理员修改
    //后台角色
    addRole: urlApi + 'mgr/role/addRole',//添加角色
    configPower: urlApi + 'mgr/role/configPower',//分配权限
    delRole: urlApi + 'mgr/role/delRole',//删除角色
    detailRole: urlApi + 'mgr/role/detailRole',//角色详情
    getRoleMenu: urlApi + 'mgr/role/getRoleMenu',//角色关联菜单（树形结构
    roleList: urlApi + 'mgr/role/roleList',//角色列表
    roleListPage: urlApi + 'mgr/role/roleListPage',//角色列表分页
    updateRole: urlApi + 'mgr/role/updateRole',//角色修改
    updateStatus: urlApi + 'mgr/admin/updateStatus',//角色状态修改
    pushAllMsg: urlApi + "mgr/msg/push/personal/where", //个人消息群发
    //后台订单
    orderList: urlApi + 'mgr/orderList',//订单列表
    orderCancel: urlApi + 'mgr/orderCancel',//取消订单
    publishOrderCancel: urlApi + 'mgr/publish/cancel',//取消订单
    orderPublishCancel: urlApi + 'mgr/orderPublishCancel',//订单关闭
    orderPublishOrderNum: urlApi + 'mgr/orderPublishOrderNum',//发单排序修改

    //服务分类
    addCateTag: urlApi + 'mgr/cate/addCateTag',//标签添加
    list: urlApi + 'mgr/cate/list',//分类标签列表
    parentTag: urlApi + 'mgr/cate/parentTag',//分类标签查询
    updCateTag: urlApi + 'mgr/cate/updCateTag',//标签修改
    //系统设置
    pay: urlApi + 'mgr/system/pay',//支付开关列表
    upd: urlApi + 'mgr/system/pay/upd',//开启关闭支付
    //动态管理
    moments: urlApi + 'mgr/dynamic/managerDynamicListPage',//动态列表
    delDynamic: urlApi + 'mgr/dynamic/delDynamic',//动态删除
    //意见反馈
    askListPage: urlApi + 'mgr/memberAsk/askListPage',//意见反馈
    askUpdate: urlApi + 'mgr/memberAsk/askUpdate',//意见反馈处理
    //举报列表
    reportListPage: urlApi + 'mgr/memberReport/reportListPage',//举报列表
    reportUpdate: urlApi + 'mgr/memberReport/reportUpdate',//举报处理
    //用户等级列表
    memberLevelList: urlApi + 'mgr/memberLevel/memberLevelList',//等级列表
    addMemberLevel: urlApi + 'mgr/memberLevel/addMemberLevel',//添加等级
    delLevel: urlApi + 'mgr/memberLevel/delCateTag',//删除等级
    updateMemberLevel: urlApi + 'mgr/memberLevel/updateMemberLevel',//修改等级
    //系统消息
    msgList: urlApi + 'mgr/msg/msgList',//消息列表
    createInfo: urlApi + 'mgr/msg/create',//消息新增
    delMessage: urlApi + 'mgr/msg/delMessage',//删除消息
    personalMsg: urlApi + 'mgr/msg/push/personal',//个人消息推送
    chatRecordList: urlApi + 'mgr/msg/chatRecord', //聊天记录列表
    changeChatRecordStatus: urlApi + 'mgr/msg/chatRecord/status', //聊天状态修改
    offlineMsgList: urlApi + "mgr/msg/offlineMsgList",//离线消息数据列表
    addOfflineMsg: urlApi + "mgr/msg/push/offline/all",//推送全员离线消息
    //发单管理
    sendOrder: urlApi + 'mgr/publish/order/list',//发单管理
    orderPass: urlApi + 'mgr/publish/order/pass',//发单审核通过
    //活动管理
    activityListPage: urlApi + 'mgr/activity/activityListPage',//活动列表
    addAactivity: urlApi + 'mgr/activity/addAactivity',//添加活动
    delAactivity: urlApi + 'mgr/activity/delAactivity',//删除活动

    //订单评论管理
    commentListPage: urlApi + 'mgr/orderComment/orderCommentListPage',//评论列表
    delComment: urlApi + 'mgr/orderComment/delAdmin',//删除评论

    //动态评论管理
    dynamicCommentList: urlApi + 'mgr/dynamicComment/orderCommentListPage',//评论列表
    delDynamicComment: urlApi + 'mgr/dynamicComment/delAdmin',//删除评论

    //会员真人认证
    memberFaceAuthList: urlApi + 'mgr/user/usersCheckedList',//真人审核列表
    memberFaceAuthHandle: urlApi + 'mgr/user/checkedFaceStatus',//真人审核处理

    //app版本控制
    versionControlList: urlApi + 'mgr/appVersion/appVersionListPage',//app版本信息列表
    updVersionControl: urlApi + 'mgr/appVersion/updateAppVersion',//app版本信息修改
    addVersionControl: urlApi + 'mgr/appVersion/addAppVersion',//app版本信息 添加
    delVersionControl: urlApi + 'mgr/appVersion/delAppVersion',//app版本信息 删除

    //app协议
    agreementList: urlApi + 'mgr/agreement/agreementList',//app协议信息列表
    updAgreement: urlApi + 'mgr/agreement/updateAgreement',//app协议信息修改
    addAgreement: urlApi + 'mgr/agreement/addAgreement',//app协议信息 添加
    delAgreement: urlApi + 'mgr/agreement/delAgreement',//app协议信息 删除

    //app用户日志
    memberLogList: urlApi + 'mgr/security/securityLogListPage',//app用户日志列表

    //会员推荐信息
    memberRecommendList: urlApi + 'mgr/memberRecommend/recommendListPage',//会员推荐列表
    delMemberRecommend: urlApi + 'mgr/memberRecommend/delRecommend',//删除会员推荐
    addMemberRecommend: urlApi + 'mgr/memberRecommend/addRecommend',//添加会员推荐列表

    //菜单
    menuList: urlApi + 'mgr/menu/list',//菜单列表
    parentMenuList: urlApi + 'mgr/menu/parent',//菜单列表
    delMenu: urlApi + 'mgr/menu/delMenu',//删
    addMenu: urlApi + 'mgr/menu/addMenu',//添加
    updMenu: urlApi + 'mgr/menu/updateMenu',//修改
    updMenuStatus: urlApi + 'mgr/menu/status',//修改状态

    //banner
    bannerList: urlApi + 'mgr/banner/bannerList',//banner列表
    delBanner: urlApi + 'mgr/banner/delbanner',//删
    addBanner: urlApi + 'mgr/banner/addBanner',//添加
    updBanner: urlApi + 'mgr/banner/updateBanner',//修改
    updBannerStatus: urlApi + 'mgr/banner/status',//修改状态

    // 支付控制
    payControlList: urlApi + 'mgr/system/pay',//列表
    updPayStatus: urlApi + 'mgr/system/pay/upd',//修改状态
    addPayType: urlApi + 'mgr/system/pay/add',//添加
    editPayType: urlApi + 'mgr/system/pay/edit',//编辑

    //关键词
    filterData:urlApi+'mgr/system/filter/kw',
    updateFilterData:urlApi+'mgr/system/upd/kw',

    //圈子类型
    circleTypeList: urlApi + 'mgr/circleType/circleTypeListPage',//分页列表
    delCircleType: urlApi + 'mgr/circleType/delCircleType', //删除
    addCircleType: urlApi + 'mgr/circleType/addCircleType', //添加
    circleTypes: urlApi + 'mgr/circleType/circleTypeList', //列表

    // 圈子名称
    circleNameList: urlApi + 'mgr/circleName/circleNameListPage',//分页列表
    delCircleName: urlApi + 'mgr/circleName/delCircleName', //删除
    addCircleName: urlApi + 'mgr/circleName/addCircleName', //添加
    updCircleName: urlApi + 'mgr/circleName/updateCircleName', //修改
    circleNames: urlApi + 'mgr/circleName/circleNameList', //修改

    // 圈子内容
    circleContentList: urlApi + 'mgr/circle/circleListPage',//分页列表
    delCircleContent: urlApi + 'mgr/circle/delCircle', //删除
    //圈子评论
    circleCommentList: urlApi + 'mgr/circleComment/circleCommentListPage',//分页列表
    delCircleComment: urlApi + 'mgr/circleComment/delCircleComment', //删除

    //身份证认证
    memberIdentityAuthList: urlApi + 'mgr/user/identityList',//身份证认证
    memberIdentityStatus: urlApi + 'mgr/user/identityStatus',//身份证认证状态修改

    //推广配置
    spreadSettingList: urlApi + 'mgr/spreadSetting/list',//配置列表数据
    addSpreadSetting: urlApi + 'mgr/spreadSetting/add',//添加配置
    delSpreadSetting: urlApi + 'mgr/spreadSetting/del',//删除配置
    profitList: urlApi + 'mgr/spreadSetting/profitList',//盈利榜单数据列表
    addProfitList: urlApi + 'mgr/spreadSetting/addProfitList',//盈利榜单数据列表
    delProfitList: urlApi + 'mgr/spreadSetting/delProfitList',//盈利榜单数据列表
    iosSwitch: urlApi + 'mgr/spreadSetting/switch',//ios配置开关

    //接口调用监控
    apiMonitorList: urlApi + 'mgr/memberClickNum/clickNumListPage', //列表数据
    //派单接口
    dispatchOrderList: urlApi + 'mgr/dispatch/orderList',//派单列表
    dispatchOrderChangeStatus: urlApi + 'mgr/dispatch/changeStatus',//派单订单状态修改
    dispatchOrderOrderNum: urlApi + 'mgr/dispatch/orderNum',//派单订单排序修改
    dispatchApplyList: urlApi + 'mgr/dispatch/apply/list',//派单申请列表
    dispatchOrderCancel: urlApi + 'mgr/dispatch/cancel',//派单订单取消

    //vip
    vipRuleList: urlApi + 'mgr/rule/vipRuleList',//vip配置信息列表
    addVipRule: urlApi + 'mgr/rule/addTVipRule',//新增
    delVipRule: urlApi + 'mgr/rule/delTVipRule',
    //权益
    vipRightsList: urlApi + 'mgr/right/VipRightsList',//权益列表数据
    addVipRights: urlApi + 'mgr/right/addVipRights',//新增
    delVipRights: urlApi + 'mgr/right/delVipRights',
    //推广
    scaleList:urlApi+'mgr/system/spread/list',
    scaleUpdate:urlApi+'mgr/system/spread/update'


};
